package exception;

public class ExceptionApiDemo {
    public static void main(String[] args) {
        try {
            System.out.println("程序开始了");
            String line="abc";
            System.out.println(Integer.parseInt( line));
        } catch (Exception e) {
            System.out.println("出错了");
            e.printStackTrace();
            String message=e.getMessage();
            System.out.println("message"+message);
        }
        System.out.println("程序结束了");
    }
}
